package edu.cmu.cs.webapp.ioms.dao;

import java.util.List;

import edu.cmu.cs.webapp.ioms.models.LineItem;
import edu.cmu.cs.webapp.ioms.models.PurchaseOrder;

/**
 * 
 * @author Christian
 * 
 */
public interface LineItemDAO {

	/**
	 * Retrieves the order items for the given order
	 * 
	 * @return the order object with the fetched items
	 * @see PurchaseOrder#getItems()
	 */
	public PurchaseOrder getOrderItems(PurchaseOrder po)
			throws DataAccessException;

	/**
	 * 
	 * @param po
	 * @param newItems
	 * @return
	 */
	public boolean addItem(LineItem item) throws DataAccessException;

}
